import 'package:flutter/material.dart';
import 'package:lib_uikit/lib_uikit.dart';
import 'package:lib_uikit/resource/resources.dart';
import 'package:lottie/lottie.dart';

class GTLoadingView extends StatelessWidget {
  final double? bottomPadding;
  const GTLoadingView({super.key, this.bottomPadding});

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Padding(
        padding: EdgeInsets.only(bottom: bottomPadding ?? GTScreen.navigationBarHeight),
        child: SizedBox(
          width: 36,
          child: Lottie.asset(
            Json.gtLoadingLottie,
            repeat: true,
            animate: true,
          ),
        ),
      ),
    );
  }
}
